package com.ericsson.enap.modules.kpi.job.vgc;

import com.ericsson.common.quartz.job.MainJob;
import com.ericsson.common.quartz.job.ManualQuartzJob;
import com.ericsson.common.quartz.service.QuartzTableManager;
import com.ericsson.enap.modules.kpi.task.vgc.VgcChfFIFKpiTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * VGC十五分钟指标处理
 * vgcChfFIFKpi.jar
 * nohup java -jar vgcChfFIFKpi.jar >/dev/null 2>&1 &
 * @author yanghai
 */
@Component
public class VgcChfFIFKpiJob implements MainJob {
    @Autowired
    QuartzTableManager quartzTableManager;
    @Autowired
    VgcChfFIFKpiTask vgcChfFIFKpiTask;
    String jobName="vgcChfFIFKpiJob";
    @Override
    public void doTask() {
        System.out.println("VgcChfFIFKpiJob start.....");
        //vgcChfFIFKpiTask.execute();
        quartzTableManager.addManualTaskJob(jobName,jobName,jobName,jobName, ManualQuartzJob.class,"0 0/15 * * * ?",vgcChfFIFKpiTask);
    }
}
